package com.hfxt.controller;

import com.hfxt.service.TaskService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class TaskController {

    @Resource
    TaskService taskService;

    @RequestMapping("/web/getmsg/{name}")
    public String getMsg(@PathVariable String name){
        return taskService.getMsgFromClient(name);
    }
}
